Allow compiling with experimental API but without curl/soup
authorMatthew Leeds <matthew.leeds@endlessm.com>
Fri, 25 May 2018 22:46:34 +0000 (15:46 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 30 May 2018 14:19:25 +0000 (14:19 +0000)
commit2b32de38cf7ad8298b334ec2657864d6de9844c6
tree94c941b64fe0d62520b1d1e90b0af3565444057e
parent4f8944b7191947ab9dd67f30426918aae6a043f8
Allow compiling with experimental API but without curl/soup

This commit rearranges a few things in ostree-repo-pull.c so that OSTree
will successfully compile with experimental API enabled and without
libsoup, libcurl, or avahi:

./autogen.sh --enable-experimental-api --without-soup --without-curl
--without-avahi

This is accomplished with two sets of changes:

1. Move ostree_repo_resolve_keyring_for_collection() so it can be used
even without libsoup or libcurl.
2. Add stub functions for ostree_repo_find_remotes_async() and
ostree_repo_pull_from_remotes_async(), and their _finish() counterparts,
so they return an error when libsoup or libcurl isn't available.

Closes: #1605
Approved by: cgwalters
src/libostree/ostree-repo-pull.c